<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var obj={
        name:"test",
        get age(){
            console.log(this);
        },
        set age(val){
           console.log(this);
        }
    }

    obj.age =1000;
    console.log(obj.age)
</script>
</html>